package objects
{
	/**
	 * @author rob.thurston
	 */
	public class ReactorGravity extends AbstractObject
	{
		[Embed(source="../assets/assets.swf", symbol="ReactorGravity")]
		protected var AssetClass : Class;

		public function ReactorGravity(yOffset : Number)
		{
			super(yOffset);

			_asset = new AssetClass();
			addChild(_asset);
		}

		override public function getCode() : String
		{
			var code : String = "";

			code = "[self addReactor:ccp(" + x + "," + (_yOffset - y) + ") gravity:true]";

			return code;
		}
	}
}
